import * as ActionTypes from "@/actions/ActionTypes";
import Accordion from "antd-mobile/lib/accordion";
const initialState = {
  orderBarmaidList: {},
  orderNow:{}
};
export default function(state = initialState, action) {
  let newState = state;
  switch (action.type) {
    // 获取订单信息
    case ActionTypes.GET_ORDERBARMAIDLIST_DATA_SUCCESS:
      newState = Object.assign({}, state, {
        orderBarmaidList: action.data
      });
      return newState;
    case ActionTypes.GET_ORDERNOW_DATA_SUCCESS:
      newState=Object.assign({},state,{
        orderNow:action.data
      });
      return newState;
    default:
      return newState;
  }
}
